package com.fjw.service.impl;

import com.fjw.dao.RoleMapper;
import com.fjw.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Set;
/**
 * @author fjw
 * @version 1.0
 * @date 2019/11/1 15:24
 */

@Service
public class RoleServiceImpl implements RoleService {

    @Autowired
    private RoleMapper roleMapper;

    @Override
    public Set<String> findRoleByUsername(String Username) {
        return roleMapper.findRoleByUsername(Username);
    }

//    @Override
//    public Integer addRole(Integer userId, String roleName) {
//
//        roleMapper.addRole(userId,roleName);
//        return null;
//    }
}
